import request from "@/api/request.js"

function doLogin(data) {
	return request({
		url: `/lejuClient/login/doLogin`,
		method: "post",
		data

	})
}

function getMemberInfo() {
	return request({
		url: `/lejuClient/login/getMemberInfo`,
		method: "get"
	})
}

function updateMemberInfo(data) {
	return request({
		url: `/lejuClient/member/updateMemberInfo`,
		method: "post",
		data	
	})
}
function uploadAvatar(data) {
	return request({
		url: `/lejuClient/login/uploadAvatar`,
		method: "post",
		data	
	})
}
export {
	doLogin,
	getMemberInfo,
	updateMemberInfo,
	uploadAvatar
}
